package com.hmall.trade;

import com.hmall.api.CartClient;
import com.hmall.api.ItemClient;
import com.hmall.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author peng_rui
 * @date 2024/12/17
 */
@EnableFeignClients(clients = {ItemClient.class, CartClient.class}, defaultConfiguration = DefaultFeignConfig.class)
@MapperScan("com.hmall.trade.mapper")
@SpringBootApplication
public class TradeApplication {
    public static void main(String[] args) {
        SpringApplication.run(TradeApplication.class, args);
    }
}
